﻿<Window x:Class="Daphne.Forms.NewGameForm"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:loc="http://schemas.tomer.com/winfx/2006/xaml/presentation"                   
        loc:Translate.Uid="FRM_NGF_Title"
        Title="{loc:Translate}" Height="250" Width="500" ResizeMode="NoResize" ShowInTaskbar="False" WindowStartupLocation="CenterOwner" WindowStyle="ToolWindow"
        Background="{DynamicResource WindowBackgroundBrush}" SizeToContent="WidthAndHeight"
        Icon="/Daphne;component/AppData/Pictures/dama_cerna.png" 
        >
    <Window.Resources>
        <Style TargetType="RadioButton" BasedOn="{StaticResource {x:Type RadioButton}}" >
            <Setter Property="Margin" Value="3" />
        </Style>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="50" />           
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>            
        </Grid.ColumnDefinitions>

        <GroupBox  loc:Translate.Uid="FRM_NGF_GameStyle" Header="{loc:Translate}" Margin="3" Grid.Row="0" Grid.Column="0">
            <StackPanel Orientation="Vertical">
                <RadioButton   x:Name="uxOnePlayerGame" loc:Translate.Uid="FRM_NGF_ComputerGame" Content="{loc:Translate}" GroupName="GameModeNGF" />
                <RadioButton   x:Name="uxTwoPlayerGame" loc:Translate.Uid="FRM_NGF_TwoPlayerGame" Content="{loc:Translate}" GroupName="GameModeNGF" />                        
            </StackPanel>                    
        </GroupBox>
        <GroupBox  loc:Translate.Uid="FRM_NGF_ComputerSTM" Header="{loc:Translate}" Margin="3" Grid.Row="0" Grid.Column="1">
            <StackPanel Orientation="Vertical">
                <RadioButton   x:Name="uxComputerWhite" loc:Translate.Uid="FRM_NGF_ComputerWhite" Content="{loc:Translate}" GroupName="ComputerColor" />
                <RadioButton   x:Name="uxComputerBlack" loc:Translate.Uid="FRM_NGF_ComputerBlack" Content="{loc:Translate}" GroupName="ComputerColor" />
            </StackPanel>
        </GroupBox>
        <GroupBox loc:Translate.Uid="FRM_NGF_Level" Header="{loc:Translate}" Margin="3" Grid.Row="0" Grid.Column="2">
            <StackPanel Orientation="Vertical">
                <RadioButton x:Name="uxLevel1" loc:Translate.Uid="FRM_NGF_Level1" Content="{loc:Translate}" GroupName="Level" />
                <RadioButton x:Name="uxLevel2" loc:Translate.Uid="FRM_NGF_Level2" Content="{loc:Translate}" GroupName="Level" />
                <RadioButton x:Name="uxLevel3" loc:Translate.Uid="FRM_NGF_Level3" Content="{loc:Translate}" GroupName="Level" />
                <RadioButton x:Name="uxLevel4" loc:Translate.Uid="FRM_NGF_Level4" Content="{loc:Translate}" GroupName="Level" />
                <RadioButton x:Name="uxLevel5" loc:Translate.Uid="FRM_NGF_Level5" Content="{loc:Translate}" GroupName="Level" />
            </StackPanel>
        </GroupBox>               
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3">
            <Button  x:Name="uxPlayGame" loc:Translate.Uid="FRM_NGF_StartGame" Content="{loc:Translate}" Margin="10" MinWidth="100" Width="Auto" />
            <Button  x:Name="uxCancel" loc:Translate.Uid="FRM_NGF_Cancel" Content="{loc:Translate}" Margin="10" Width="100"/>
        </StackPanel>            
    </Grid>
</Window>
